package zcj.stu;

import org.springframework.core.env.PropertySource;
import org.springframework.core.env.StandardEnvironment;

import java.lang.reflect.Constructor;

public class Step3 {
    public static void main(String[] args) throws Exception {
//        Class<?> clazz = Class.forName("ApplicationEnvironment");
//        Constructor<?> constructor = clazz.getConstructor();
//        constructor.setAccessible(true);
//        StandardEnvironment env =(StandardEnvironment) constructor.newInstance();
        StandardEnvironment env =new StandardEnvironment();
        for (PropertySource<?> propertySource : env.getPropertySources()) {
            System.out.println(propertySource);
        }
    }
}
